#ifndef _485UART5_H
#define _485UART5_H

#include "system.h"

typedef struct
{
	struct
	{
		float PT1;
		float PT2;
		float PT3;
		float PT4;
	}LeftPT100;
	
	struct
	{
		float PT1;
		float PT2;
		float PT3;
		float PT4;
	}RightPT100;
	
	struct
	{
		float State;
	}LeftIVG_2;
	
	struct
	{
		float State;
	}RightIVG_2;
	
	struct
	{
		float Humidity;
		float Temperature;
	}LeftTAS_WS_R00020;
		
	struct
	{
		float Humidity;
		float Temperature;
	}RightTAS_WS_R00020;
	
	struct
	{
		float Voltage;
		float Current;
	}LeftSDA10_48100;
	
	struct
	{
		float Voltage;
		float Current;	
	}RightSDA10_48100;
	
	struct
	{
		float Height;
	}Fuel_Level;
}Uart5_Receive_Data_;

extern Uart5_Receive_Data_ Receive_Data;

void v485uart(uint8_t Data[],uint16_t size);
uint16_t CRC16_ModBus(uint8_t *CRC_Ptr, uint8_t LEN);
uint16_t ascii_hex_to_decimal(const uint8_t* data, uint8_t start, uint8_t length);


#endif
